﻿//-----------------------------------------------------------------------
// <copyright file="Page.cs" company="Noboru Project">
//      Copyright (c) Noboru Project. All rights reserved.
//
//      This source code is subject to terms and conditions of the New BSD License (BSD).
//      A copy of the license can be found in the License.html file at the root of this 
//      distribution. If you can not locate the New BSD License (BSD), please send an 
//      email to noboru_adm@live.com.
//      By using this source code in any fashion, you are agreeing to be bound by
//      the terms of the New BSD License (BSD) for Noboru.
//
//      You must not remove this notice, or any other, from this software.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Noboru.Demo
{
    public partial class Page : UserControl
    {
        public Page()
        {
            this.InitializeComponent();
        }

        private void toolStripLabelDialogControl_Click(object sender, RoutedEventArgs e)
        {
            this.toolStripLabelToolStripLabelControl.IsChecked = false;
            this.toolStripLabelToolStripButtonControl.IsChecked = false;
            this.toolStripLabelShadowControl.IsChecked = false;
            this.toolStripLabelMessageBoxControl.IsChecked = false;
            this.toolStripLabelMessageBoxClass.IsChecked = false;
            this.toolStripLabelGroupBoxControl.IsChecked = false;
            this.toolStripLabelGlowControl.IsChecked = false;
            this.toolStripLabelDialogClass.IsChecked = false;
            this.toolStripLabelGroupControl.IsChecked = false;
            this.toolStripLabelDialogControl.IsChecked = true;

            this.ToolStripButtonControlPage.Visibility = Visibility.Collapsed;
            this.ShadowControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxClassPage.Visibility = Visibility.Collapsed;
            this.GroupControlPage.Visibility = Visibility.Collapsed;
            this.GroupBoxControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlClassPage.Visibility = Visibility.Collapsed;
            this.GlowControlPage.Visibility = Visibility.Collapsed;
            this.ToolStripLabelControlPage.Visibility = Visibility.Collapsed;

            this.DialogControlPage.Visibility = Visibility.Visible;
        }

        private void toolStripLabelDialogClass_Click(object sender, RoutedEventArgs e)
        {
            this.toolStripLabelToolStripLabelControl.IsChecked = false;
            this.toolStripLabelToolStripButtonControl.IsChecked = false;
            this.toolStripLabelShadowControl.IsChecked = false;
            this.toolStripLabelMessageBoxControl.IsChecked = false;
            this.toolStripLabelMessageBoxClass.IsChecked = false;
            this.toolStripLabelGroupControl.IsChecked = false;
            this.toolStripLabelGroupBoxControl.IsChecked = false;
            this.toolStripLabelGlowControl.IsChecked = false;
            this.toolStripLabelDialogControl.IsChecked = false;
            this.toolStripLabelDialogClass.IsChecked = true;

            this.ToolStripButtonControlPage.Visibility = Visibility.Collapsed;
            this.ShadowControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxClassPage.Visibility = Visibility.Collapsed;
            this.GroupControlPage.Visibility = Visibility.Collapsed;
            this.GroupBoxControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlPage.Visibility = Visibility.Collapsed;
            this.GlowControlPage.Visibility = Visibility.Collapsed;
            this.ToolStripLabelControlPage.Visibility = Visibility.Collapsed;

            this.DialogControlClassPage.Visibility = Visibility.Visible;
        }

        private void toolStripLabelGlowControl_Click(object sender, RoutedEventArgs e)
        {
            this.toolStripLabelToolStripLabelControl.IsChecked = false;
            this.toolStripLabelToolStripButtonControl.IsChecked = false;
            this.toolStripLabelShadowControl.IsChecked = false;
            this.toolStripLabelMessageBoxControl.IsChecked = false;
            this.toolStripLabelMessageBoxClass.IsChecked = false;
            this.toolStripLabelGroupControl.IsChecked = false;
            this.toolStripLabelGroupBoxControl.IsChecked = false;
            this.toolStripLabelDialogClass.IsChecked = false;
            this.toolStripLabelDialogControl.IsChecked = false;
            this.toolStripLabelGlowControl.IsChecked = true;

            this.ToolStripButtonControlPage.Visibility = Visibility.Collapsed;
            this.ShadowControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxClassPage.Visibility = Visibility.Collapsed;
            this.GroupControlPage.Visibility = Visibility.Collapsed;
            this.GroupBoxControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlClassPage.Visibility = Visibility.Collapsed;
            this.ToolStripLabelControlPage.Visibility = Visibility.Collapsed;

            this.GlowControlPage.Visibility = Visibility.Visible;
        }

        private void toolStripLabelGroupBoxControl_Click(object sender, RoutedEventArgs e)
        {
            this.toolStripLabelToolStripLabelControl.IsChecked = false;
            this.toolStripLabelToolStripButtonControl.IsChecked = false;
            this.toolStripLabelShadowControl.IsChecked = false;
            this.toolStripLabelMessageBoxControl.IsChecked = false;
            this.toolStripLabelMessageBoxClass.IsChecked = false;
            this.toolStripLabelGroupControl.IsChecked = false;
            this.toolStripLabelDialogClass.IsChecked = false;
            this.toolStripLabelDialogControl.IsChecked = false;
            this.toolStripLabelGlowControl.IsChecked = false;
            this.toolStripLabelGroupBoxControl.IsChecked = true;

            this.ToolStripButtonControlPage.Visibility = Visibility.Collapsed;
            this.ShadowControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxClassPage.Visibility = Visibility.Collapsed;
            this.GroupControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlClassPage.Visibility = Visibility.Collapsed;
            this.GlowControlPage.Visibility = Visibility.Collapsed;
            this.ToolStripLabelControlPage.Visibility = Visibility.Collapsed;

            this.GroupBoxControlPage.Visibility = Visibility.Visible;
        }

        private void toolStripLabelGroupControl_Click(object sender, RoutedEventArgs e)
        {
            this.toolStripLabelToolStripLabelControl.IsChecked = false;
            this.toolStripLabelToolStripButtonControl.IsChecked = false;
            this.toolStripLabelShadowControl.IsChecked = false;
            this.toolStripLabelMessageBoxControl.IsChecked = false;
            this.toolStripLabelMessageBoxClass.IsChecked = false;
            this.toolStripLabelDialogClass.IsChecked = false;
            this.toolStripLabelDialogControl.IsChecked = false;
            this.toolStripLabelGlowControl.IsChecked = false;
            this.toolStripLabelGroupBoxControl.IsChecked = false;
            this.toolStripLabelGroupControl.IsChecked = true;

            this.ToolStripButtonControlPage.Visibility = Visibility.Collapsed;
            this.ShadowControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxClassPage.Visibility = Visibility.Collapsed;
            this.DialogControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlClassPage.Visibility = Visibility.Collapsed;
            this.GlowControlPage.Visibility = Visibility.Collapsed;
            this.GroupBoxControlPage.Visibility = Visibility.Collapsed;
            this.ToolStripLabelControlPage.Visibility = Visibility.Collapsed;

            this.GroupControlPage.Visibility = Visibility.Visible;
        }

        private void toolStripLabelMessageBoxClass_Click(object sender, RoutedEventArgs e)
        {
            this.toolStripLabelToolStripLabelControl.IsChecked = false;
            this.toolStripLabelToolStripButtonControl.IsChecked = false;
            this.toolStripLabelShadowControl.IsChecked = false;
            this.toolStripLabelMessageBoxControl.IsChecked = false;
            this.toolStripLabelDialogClass.IsChecked = false;
            this.toolStripLabelDialogControl.IsChecked = false;
            this.toolStripLabelGlowControl.IsChecked = false;
            this.toolStripLabelGroupBoxControl.IsChecked = false;
            this.toolStripLabelGroupControl.IsChecked = false;
            this.toolStripLabelMessageBoxClass.IsChecked = true;

            this.ToolStripButtonControlPage.Visibility = Visibility.Collapsed;
            this.ShadowControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlClassPage.Visibility = Visibility.Collapsed;
            this.GlowControlPage.Visibility = Visibility.Collapsed;
            this.GroupBoxControlPage.Visibility = Visibility.Collapsed;
            this.GroupControlPage.Visibility = Visibility.Collapsed;
            this.ToolStripLabelControlPage.Visibility = Visibility.Collapsed;

            this.MessageBoxClassPage.Visibility = Visibility.Visible;
        }

        private void toolStripLabelMessageBoxControl_Click(object sender, RoutedEventArgs e)
        {
            this.toolStripLabelToolStripLabelControl.IsChecked = false;
            this.toolStripLabelToolStripButtonControl.IsChecked = false;
            this.toolStripLabelShadowControl.IsChecked = false;
            this.toolStripLabelDialogClass.IsChecked = false;
            this.toolStripLabelDialogControl.IsChecked = false;
            this.toolStripLabelGlowControl.IsChecked = false;
            this.toolStripLabelGroupBoxControl.IsChecked = false;
            this.toolStripLabelGroupControl.IsChecked = false;
            this.toolStripLabelMessageBoxClass.IsChecked = false;
            this.toolStripLabelMessageBoxControl.IsChecked = true;

            this.ToolStripButtonControlPage.Visibility = Visibility.Collapsed;
            this.ShadowControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlClassPage.Visibility = Visibility.Collapsed;
            this.GlowControlPage.Visibility = Visibility.Collapsed;
            this.GroupBoxControlPage.Visibility = Visibility.Collapsed;
            this.GroupControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxClassPage.Visibility = Visibility.Collapsed;
            this.ToolStripLabelControlPage.Visibility = Visibility.Collapsed;

            this.MessageBoxControlPage.Visibility = Visibility.Visible;
        }

        private void toolStripLabelShadowControl_Click(object sender, RoutedEventArgs e)
        {
            this.toolStripLabelToolStripLabelControl.IsChecked = false;
            this.toolStripLabelToolStripButtonControl.IsChecked = false;
            this.toolStripLabelDialogClass.IsChecked = false;
            this.toolStripLabelDialogControl.IsChecked = false;
            this.toolStripLabelGlowControl.IsChecked = false;
            this.toolStripLabelGroupBoxControl.IsChecked = false;
            this.toolStripLabelGroupControl.IsChecked = false;
            this.toolStripLabelMessageBoxClass.IsChecked = false;
            this.toolStripLabelMessageBoxControl.IsChecked = false;
            this.toolStripLabelShadowControl.IsChecked = true;

            this.ToolStripButtonControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlClassPage.Visibility = Visibility.Collapsed;
            this.GlowControlPage.Visibility = Visibility.Collapsed;
            this.GroupBoxControlPage.Visibility = Visibility.Collapsed;
            this.GroupControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxClassPage.Visibility = Visibility.Collapsed;
            this.MessageBoxControlPage.Visibility = Visibility.Collapsed;
            this.ToolStripLabelControlPage.Visibility = Visibility.Collapsed;

            this.ShadowControlPage.Visibility = Visibility.Visible;
        }

        private void toolStripLabelToolStripButtonControl_Click(object sender, RoutedEventArgs e)
        {
            this.toolStripLabelToolStripLabelControl.IsChecked = false;
            this.toolStripLabelDialogClass.IsChecked = false;
            this.toolStripLabelDialogControl.IsChecked = false;
            this.toolStripLabelGlowControl.IsChecked = false;
            this.toolStripLabelGroupBoxControl.IsChecked = false;
            this.toolStripLabelGroupControl.IsChecked = false;
            this.toolStripLabelMessageBoxClass.IsChecked = false;
            this.toolStripLabelMessageBoxControl.IsChecked = false;
            this.toolStripLabelShadowControl.IsChecked = false;
            this.toolStripLabelToolStripButtonControl.IsChecked = true;

            this.DialogControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlClassPage.Visibility = Visibility.Collapsed;
            this.GlowControlPage.Visibility = Visibility.Collapsed;
            this.GroupBoxControlPage.Visibility = Visibility.Collapsed;
            this.GroupControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxClassPage.Visibility = Visibility.Collapsed;
            this.MessageBoxControlPage.Visibility = Visibility.Collapsed;
            this.ShadowControlPage.Visibility = Visibility.Collapsed;
            this.ToolStripLabelControlPage.Visibility = Visibility.Collapsed;

            this.ToolStripButtonControlPage.Visibility = Visibility.Visible;
        }

        private void toolStripLabelToolStripLabelControl_Click(object sender, RoutedEventArgs e)
        {
            this.toolStripLabelDialogClass.IsChecked = false;
            this.toolStripLabelDialogControl.IsChecked = false;
            this.toolStripLabelGlowControl.IsChecked = false;
            this.toolStripLabelGroupBoxControl.IsChecked = false;
            this.toolStripLabelGroupControl.IsChecked = false;
            this.toolStripLabelMessageBoxClass.IsChecked = false;
            this.toolStripLabelMessageBoxControl.IsChecked = false;
            this.toolStripLabelShadowControl.IsChecked = false;
            this.toolStripLabelToolStripButtonControl.IsChecked = false;
            this.toolStripLabelToolStripLabelControl.IsChecked = true;

            this.DialogControlPage.Visibility = Visibility.Collapsed;
            this.DialogControlClassPage.Visibility = Visibility.Collapsed;
            this.GlowControlPage.Visibility = Visibility.Collapsed;
            this.GroupBoxControlPage.Visibility = Visibility.Collapsed;
            this.GroupControlPage.Visibility = Visibility.Collapsed;
            this.MessageBoxClassPage.Visibility = Visibility.Collapsed;
            this.MessageBoxControlPage.Visibility = Visibility.Collapsed;
            this.ShadowControlPage.Visibility = Visibility.Collapsed;
            this.ToolStripButtonControlPage.Visibility = Visibility.Collapsed;

            this.ToolStripLabelControlPage.Visibility = Visibility.Visible;
        }
    }
}
